package java8;

import java.util.Arrays;

/**
 * Created by Administrator on 2017/5/11.
 */
public class LambdaJava8 {

    public static void main(String[] args) {
        Arrays.asList("a", "b", "d").forEach(e -> System.out.println("1" + e));

        Arrays.asList("a", "b", "d", "e").forEach((String e) -> System.out.println("2" + e));

        Arrays.asList("a", "b", "d").forEach(e -> {
            System.out.print(e);
        });
    }
}
